/*
 * Copyright (C) 2011  Xu Haojie
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package net.poemcode.gzlib.detail;

import java.util.ArrayList;
import java.util.List;

import net.poemcode.gzlib.common.CommonRequest;

import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;

public class DetailRequest extends CommonRequest {

	private String cmdACT = "detailmarc";
	
	private String bookrecno;
	
	public DetailRequest(String bookrecno) {
		super();
		this.bookrecno = bookrecno;
	}

	public String getBookrecno() {
		return bookrecno;
	}

	public void setBookrecno(String bookrecno) {
		this.bookrecno = bookrecno;
	}
	
	@Override
	public List<NameValuePair> getHttpParamemters() {
		List<NameValuePair> qparams = new ArrayList<NameValuePair>();
		qparams.add(new BasicNameValuePair("cmdACT", cmdACT));
		qparams.add(new BasicNameValuePair("bookrecno", bookrecno));
		return qparams;
	}
}
